<?php
/**
 *      [迷你云] (C)2009-2012 南京恒为网络科技.
 *   软件仅供研究与学习使用，如需商用，请访问www.miniyun.cn获得授权
 * 
 */
?>
<?php if ($success == 1) {?>
    <div class="updated" id="message"><p>更新成功。</p></div>
<?php }?>
<div class="wrap">
    <?php $this->pageTitle="用户源设置"; ?>
    <div class="icon32" id="icon-users"><br>
    </div>
    <h2>用户源设置<span class="description">(可兼容discuz、phpWind、wordpress与接口用户源[不可同时开启],也可以自定义注册, 以及找回密码地址</span></h2>


    <h2 class="nav-tab-wrapper">
        <a class="nav-tab " href="<?php echo(Yii::app()->params['app']['host'])?>/index.php?r=adminSettingPanel/user">管理用户源</a>
        <a class="nav-tab nav-tab-active" href="<?php echo(Yii::app()->params['app']['host'])?>/index.php?r=adminSettingPanel/url">管理地址</a>
    </h2>
    
    <p>如果地址为空则使用系统默认的注册与修改密码地址</p>
    
    <?php $form=$this->beginWidget('CActiveForm'); ?>
    <table class="form-table">
    <?php echo $form->errorSummary($model,""); ?>
    <tbody><tr valign="top">
        <th scope="row"><label for="blogname">自定义注册地址</label></th>
        <td><?php echo $form->textField($model, "userCreateUrl", array("value"=>$model->getValue("userCreateUrl"),"class"=>"regular-text")); ?>
        <span class="description">系统注册链接将打开给定页面。</span></td>
        </tr>
        <tr valign="top">
        <th scope="row"><label for="blogdescription">自定义找回密码地址</label></th>
        <td><?php echo $form->textField($model, "userGetpwdUrl", array("value"=>$model->getValue("userGetpwdUrl"),"class"=>"regular-text")); ?>
        <span class="description">系统找回密码链接将打开给定页面。</span></td>
        </tr>
    </tbody></table>
    <p class="submit"><input type="submit" value="保存更改" class="button-primary" id="submit" name="submit"></p>
    <?php $this->endWidget(); ?>
</div>